import request from '@/utils/request'

/** 客户 */

// 获取潜在客户列表
export function getCustomerList(data) {
    return request({
        url: '/customer/getCustomerList',
        method: 'post',
        data: data
    })
}

// 添加潜在客户
export function addCustomer(data) {
    return request({
        url: '/customer/addCustomer',
        method: 'post',
        data: data
    })
}

// 获取字典列表
export function getDictList(data) {
    return request({
        url: '/customer/getDictList',
        method: 'post',
        data: data
    })
}

// 潜在客户详情
export function getCustomerByNum(data) {
    return request({
        url: '/customer/getCustomerByUUID',
        method: 'post',
        data: data
    })
}

// 审批
export function approveCustomer(data) {
    return request({
        url: '/customer/approveCustomer',
        method: 'post',
        data: data
    })
}

// 驳回
export function rejectCustomer(data) {
    return request({
        url: '/customer/rejectCustomer',
        method: 'post',
        data: data
    })
}

// 撤销
export function revocationCustomer(data) {
    return request({
        url: '/customer/revocationCustomer',
        method: 'post',
        data: data
    })
}

// 转po
export function transformPO(data) {
    return request({
        url: '/customer/transformPO',
        method: 'post',
        data: data
    })
}

// 潜在客户状态
export function setCustomerStatusByIdArr(data) {
    return request({
        url: '/customer/setCustomerStatusByIdArr',
        method: 'put',
        data: data
    })
}

// 获取潜在供应商列表
export function getSupplierList(data) {
    return request({
        url: '/supplier/getSupplierList',
        method: 'post',
        data: data
    })
}
//待办件
export function getBacklogList(data) {
    return request({
        url: '/workApprove/backlogList',
        method: 'get',
        params:data
    })
}